import request from '@/axios';

export const projectList = (current, size, params) => {
  return request({
    url: '/blade-project/base/page',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    },
  });
};

export const list = (current, size, params) => {
  return request({
    url: '/blade-project/base/managePage',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    },
  });
};

export const update = row => {
  return request({
    url: '/blade-project/base/submit',
    method: 'post',
    data: row,
  });
};
